package com.basiclib.inter

import com.basiclib.widget.OnDialogDismissListener

interface IMvpView {

    /**
     * 显示loading对话框
     *
     */
    abstract fun showLoading(msg: String = "", error: String = "", listener: OnDialogDismissListener? = null)

    abstract fun showErrorLoading(error: String = "", listener: OnDialogDismissListener? = null)

    abstract fun showSucessLoading(msg: String = "", listener: OnDialogDismissListener? = null)
    /**
     * 显示loading对话框
     *
     */
    abstract fun showLoading()

    /**
     * 隐藏loading对话框
     */
    abstract fun hideLoading()

    /**
     * 显示无网络 或者 请求数据失败布局
     */
    abstract fun showErrorView()


    /**
     * 设置监听
     */
    abstract fun setListener()

    /**
     * 检查网络
     */
    abstract fun isNetWorkAvailable(): Boolean

    abstract fun showShortToast(msg: String)
}